// pages/monitorlive/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    url:""
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var t = this
    t.setData({
      url:decodeURIComponent(options.url)
    })
    wx.getSystemInfo({
      success: (res) => {
        console.log(res)
        t.setData({
          winH:res.windowHeight,
          winW:res.windowWidth
        })
      },
    })
  },
  statechange(e) {
    console.log('live-player code:', e.detail.code)
  },
  error(e) {
    console.error('live-player error:', e.detail.errMsg)
  }
})